<template>
<div class="share">
<a href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzA3NzQyNzE4Mw==&scene=124#wechat_redirect">
  <img src="../../assets/GZH/Share.jpg" alt="">
</a>
</div>
</template>
<script>
import weixin from './wxConfig.js'
export default {
  components:{

  },
  data(){
    return{
      shareImg:require('../../assets/GZH/share-ico.png'),
    }
  },
  mounted(){
    let _this = this;
    // window.location.href = 'https://mp.weixin.qq.com/s/4ZWNSSbI6AEVe17i1axBwQ'
    let root = process.env.VUE_APP_MAIN;
    setTimeout(() => {
      console.log('分享')
      console.log(weixin.wxShare)
      weixin.wxShare({
        title:'超级试骑，九银KING，抢免单大奖，赢现金红包，百分百中奖！',
        desc:'我在现场，九银King超级试骑活动，真的很赞，抢免单大奖，赢现金红包，百分百中奖。快来参与吧！',
        link:location.href.split('?')[0]+'activities/share/index.html?shopId='+this.shopId+'&activityId='+this.activityId,
        imgUrl:root+ _this.shareImg,
      })
    }, 200);
  },
  methods:{
    myPrize(){
      let _this = this;
        this.$api.get("/activity/v1/authExpApi/prize",{},s => {
          console.log(s);
          if(!s.module){
            _this.myPrizeDate = []
          } else{
            _this.myPrizeDate = s.module
          }
      },f => {

      },{
        "Content-Type": "application/x-www-form-urlencoded",
        Accept: "*/*",
        expToken:this.token
      });
    },
  }
}
</script>
<style>
body, html {
    width:100%;
    height:auto;
}
</style>

<style scoped lang="scss">
.share{
  width:100%;
  // height:100%;
}
img{
  width:100%;
  height:100%;
}
</style>